Skip to content

)}

QuaternaryDictionary.Add(TKey, TValue) method

Defined in

Type: QuaternaryDictionary Namespace: ReactiveList.Collections Assembly: ReactiveList.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public void Add(TKey key, TValue value)

  2. public void Add(KeyValuePair<TKey, TValue> item)

1. Overload

public void Add(TKey key, TValue value)

View source (opens in a new tab)

Summary: Adds the specified key and value to the collection.

Parameters

NameTypeDescription
keyTKeyThe key of the element to add.
valueTValueThe value of the element to add.

Exceptions

TypeCondition
System.ArgumentException (opens in a new tab)Thrown if the key already exists.

2. Overload

public void Add(KeyValuePair<TKey, TValue> item)

View source (opens in a new tab)

Summary: Adds the specified key/value pair to the collection.

Parameters

NameTypeDescription
itemKeyValuePair (opens in a new tab)The key/value pair to add.